package com.example.demo.email.service;


import javax.mail.MessagingException;

/**
 * @Author: zjq
 * @Date: create in 2024/1/3 18:18
 */
public interface EmailService {

    /**
     * 发送邮件
     *
     * @param email 邮箱
     * @param code
     * @throws MessagingException
     */
    void sendMail(String email, String code) throws MessagingException;

}
